import _http from '@/utils/http'

export default {
    warehouseList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/base-goods/list',
            apiName: '设备商品列表',
        }, params, loading, headers)
    },

    goodsList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/saled/goods/list',
            apiName: '商品列表',
        }, params, loading, headers)
    },

    goodsInfo(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/saled/goods/info',
            apiName: '商品详情',
        }, params, loading, headers)
    },

    goodsDelete(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/saled/goods/delete',
            apiName: '商品删除',
        }, params, loading, headers)
    },

    goodsCreate(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/saled/goods/create',
            apiName: '商品新增',
        }, params, loading, headers)
    },

    goodsModify(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/saled/goods/modify',
            apiName: '商品编辑',
        }, params, loading, headers)
    },

    goodsStatus(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/saled/goods/shelve-status',
            apiName: '商品状态调整',
        }, params, loading, headers)
    },

    warehouseGoodsInfo(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/base-goods/info',
            apiName: '设备商品详情',
        }, params, loading, headers)
    },
}
